package com.jr9z.jrjz.service.impl;

import com.jr9z.jrjz.dao.TeamMemberMapper;
import com.jr9z.jrjz.entity.TeamMember;
import com.jr9z.jrjz.service.TeamMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:
 * @Date:2019.03.25 21:56
 **/
@Service
public class TeamMemberServiceImpl implements TeamMemberService {

    @Autowired
    private TeamMemberMapper teamMemberMapper;

    @Override
    public int deleteByPrimaryKey(Integer menberId) {
        return teamMemberMapper.deleteByPrimaryKey(menberId);
    }

    @Override
    public int insert(TeamMember record) {
        return teamMemberMapper.insert(record);
    }

    @Override
    public int insertSelective(TeamMember record) {
        return teamMemberMapper.insertSelective(record);
    }

    @Override
    public TeamMember selectByPrimaryKey(Integer menberId) {
        return teamMemberMapper.selectByPrimaryKey(menberId);
    }

    @Override
    public int updateByPrimaryKeySelective(TeamMember record) {
        return teamMemberMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TeamMember record) {
        return teamMemberMapper.updateByPrimaryKey(record);
    }

    @Override
    public long getMemberCount() {
        return teamMemberMapper.getMemberCount();
    }

    @Override
    public List<TeamMember> getAllMember() {
        return teamMemberMapper.getAllMember();
    }
}
